<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>
    <table border="1px">
       <tr>
           <th>用户编号</th>
           <th>用户名</th>
           <th>密码</th>
           <th>真实姓名</th>
           <th>性别</th>
           <th>年龄</th>
           <th>家庭住址</th>
           <th>邮箱</th>
           <th>qq</th>
           <th>
               操作
               <a th:href="@{/user/insertUser}">添加用户</a>
           </th>
       </tr>
       <tr th:each="user : ${users}">
           <td th:text="${user.id}"></td>
           <td th:text="${user.username}"></td>
           <td th:text="${user.password}"></td>
           <td th:text="${user.name}"></td>
           <td th:text="${user.gender}"></td>
           <td th:text="${user.age}"></td>
           <td th:text="${user.address}"></td>
           <td th:text="${user.email}"></td>
           <td th:text="${user.qq}"></td>
           <td>
               <a th:href="@{/user/findUserById(id=${user.id})}">修改</a>
               <a th:href="@{/user/deleteUserById(id=${user.id})}">删除</a>
           </td>
       </tr>



    </table>
</body>
</html>